var express = require('express');
var router = express.Router();
var Api = require('./../controller/web/web');

// 前端api接口

router.post('/login', Api.login);
router.post('/register', Api.verifyCcount, Api.register);
router.post('/index', Api.verToken, Api.index);
router.post('/issue', Api.verToken, Api.issue);
router.post('/upUserInfo', Api.verToken, Api.upUserInfo);
router.post('/user_data', Api.verToken, Api.getUserNum);
router.post('/up_pwd', Api.verToken, Api.setPwd);
router.post('/my_mimi', Api.verToken, Api.myMimi);
router.post('/message_det', Api.verToken, Api.messageDet);
router.post('/dot', Api.verToken, Api.toDot);
router.post('/del_dot', Api.verToken, Api.delDot);
router.post('/get_comment', Api.verToken, Api.getComment);
router.post('/to_comment', Api.verToken, Api.toComment);
router.post('/del_comment', Api.verToken, Api.delComment);
router.post('/del_mimi', Api.verToken, Api.delMessage);

module.exports = router;
